{
GtkCssImageIconTheme *icon_theme = GTK_CSS_IMAGE_ICON_THEME (image);
GtkCssImageIconTheme *copy;
+ GtkSettings *settings;
+ GdkDisplay *display;
copy = g_object_new (GTK_TYPE_CSS_IMAGE_ICON_THEME, NULL);
copy->name = g_strdup (icon_theme->name);
- copy->icon_theme = icon_theme->icon_theme;
+ settings = gtk_style_provider_get_settings (provider);
+ display = _gtk_settings_get_display (settings);
+ copy->icon_theme = gtk_icon_theme_get_for_display (display);
copy->scale = gtk_style_provider_get_scale (provider);
gtk_icon_theme_lookup_symbolic_colors (style, ©->color, ©->success, ©->warning, ©->error);